package com.qc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qc.dao.SecretaryDao;
import com.qc.entity.SecretaryEntity;
import com.qc.service.SecretaryService;

@SuppressWarnings("rawtypes")
@Service("secretaryService")
public class SecretaryServiceImpl implements SecretaryService{
	
	@Resource(name="secretaryDao")
    private SecretaryDao secretaryDao;

	@Override
	public int getListSecretaryCount(String name) {

		return secretaryDao.getListSecretaryCount(name);
	}

	@Override
	public List getAllSecretary(String name, int pageNo, int pageSize) {

		return secretaryDao.getAllSecretary(name, pageNo, pageSize);
	}

	@Override
	public int saveSecretary(SecretaryEntity secretaryEntity) {

		return secretaryDao.saveSecretary(secretaryEntity);
	}

	@Override
	public int deleteSecretaryId(long id) {

		return secretaryDao.deleteSecretaryId(id);
	}

	@Override
	public int updateSecretaryId(SecretaryEntity secretaryEntity) {

		return secretaryDao.updateSecretaryId(secretaryEntity);
	}

	@Override
	public List getAllLevleOne() {

		return secretaryDao.getAllLevleOne();
	}

	@Override
	public int getListSecretaryCountTwo(String name, String parent) {

		return secretaryDao.getListSecretaryCountTwo(name, parent);
	}

	@Override
	public List getAllSecretaryTwo(String name, String parent, int pageNo,int pageSize) {

		return secretaryDao.getAllSecretaryTwo(name, parent, pageNo, pageSize);
	}

}
